package router

import (
	"baidu_api/handler/api"

	"github.com/cloudwego/hertz/pkg/app/server"
)

func Router(h *server.Hertz) {
	r1 := h.Group("r1")
	{
		r2 := r1.Group("r2")
		{
			r2.POST("register", api.Register)
			r2.POST("login", api.Login)
			r2.POST("locate", api.Locate)
			r2.GET("address", api.Address)
			r2.GET("route", api.Route)
			r2.POST("count", api.Count)
		}
	}
}
